public < T > T datastoreToJava ( Entity entity ) { try { if ( entity == null ) { return null ; } T result = ( T ) persistentClass . newInstance ( ) ; populate ( entity , result ) ; return result ; } catch ( InstantiationException e ) { throw new RuntimeException ( e ) ; } catch ( IllegalAccessException e ) { throw new RuntimeException ( e ) ; } }
Convert a value from Google representation to a Java value