from

public static StateClass from(Class<? extends EntityState> value)

Creates an instance of EntityStateClass from the given class.