src/main/java/com/googlecode/objectify/impl/translate/ClassPopulator.java
public KeyMetadata<P> getKeyMetadata() {
		final Populator<Object> populator = props.get(0);
		Preconditions.checkState(populator instanceof KeyPopulator, "Cannot get KeyMetadata for non-@Entity class " + this.clazz);
		return ((KeyPopulator<P>)populator).getKeyMetadata();
	}
public KeyMetadata<P> getKeyMetadata() {
		final Populator<Object> populator = props.get(0);
		Preconditions.checkState(populator instanceof KeyPopulator, "Cannot get KeyMetadata for non-@Entity class " + this.clazz);
		return ((KeyPopulator<P>)populator).getKeyMetadata();
	}
Gets the key metadata but only if this was an @Entity annotated class. Should not be called if not.