/** * Reserved for internal use. Generates an {@link EntityProperty} from the result of invoking the getter method for * this property on the specified instance parameter. * * @param instance * An instance of a class supporting this property with getter and setter methods of the * appropriate name and parameter or return type. * * @return * An {@link EntityProperty} with the data type and value returned by the invoked getter on the instance. * * @throws IllegalArgumentException * if the specified instance parameter is not an instance of the class * or interface declaring the getter method (or of a subclass or implementor thereof). * @throws IllegalAccessException * if the getter method is inaccessible. * @throws InvocationTargetException * if the getter method throws an exception. */ protected EntityProperty generateEntityProperty(final Object instance) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { final Class<?> getType = this.getter.getReturnType(); Object val = this.getter.invoke(instance, (Object[]) null); EntityProperty property = new EntityProperty(val, getType); property.setIsEncrypted(this.isEncrypted); return property; }
kvp.getValue().setIsEncrypted(true);