code: public static <T extends Entity> T asType(final Entity entity, final Class<T> type) {
  	return getProxyFactory().proxyOfEntity(entity, type);
      }
docs: Wraps an Entity as the supplied Entity type. This is a convenience method for
  {@link EntityProxyFactory#proxyOfEntity(Entity, Class)}.
  
  @param entity
  Entity to wrap.
  @param type
  Entity type to wrap to.
  @return The wrapped Entity.
  
  @see #getProxyFactory()