src/main/java/com/googlecode/objectify/impl/SaverImpl.java
@Override
	public FullEntity<?> toEntity(final Object pojo) {
		if (pojo instanceof FullEntity<?>) {
			return (FullEntity<?>)pojo;
		} else {
			@SuppressWarnings("unchecked")
			final EntityMetadata<Object> meta = (EntityMetadata<Object>)ofy.factory().getMetadata(pojo.getClass());
			return meta.save(pojo, new SaveContext());
		}
	}
@Override
	public FullEntity<?> toEntity(final Object pojo) {
		if (pojo instanceof FullEntity<?>) {
			return (FullEntity<?>)pojo;
		} else {
			@SuppressWarnings("unchecked")
			final EntityMetadata<Object> meta = (EntityMetadata<Object>)ofy.factory().getMetadata(pojo.getClass());
			return meta.save(pojo, new SaveContext());
		}
	}
@ Override public FullEntity < ? > toEntity ( final Object pojo ) { if ( pojo instanceof FullEntity < ? > ) { return ( FullEntity < ? > ) pojo ; } else { @ SuppressWarnings ( "unchecked" ) final EntityMetadata < Object > meta = ( EntityMetadata < Object > ) ofy . factory ( ) . getMetadata ( pojo . getClass ( ) ) ; return meta . save ( pojo , new SaveContext ( ) ) ; } }
/* (non-Javadoc)
@see com.googlecode.objectify.cmd.Saver#toEntity(java.lang.Object)
/ * ( non - Javadoc )