private List<String> getSettableProperties(InternalWorkingMemory workingMemory, Class<?> classType, String pkgName) {
if ( pkgName.equals( "java.lang" ) || pkgName.equals( "java.util" ) ) {
return Collections.EMPTY_LIST;
}
InternalKnowledgePackage pkg = workingMemory.getKnowledgeBase().getPackage( pkgName );
TypeDeclaration tdecl = pkg != null ? pkg.getTypeDeclaration( classType ) : null;
return tdecl != null ? tdecl.getSettableProperties() : Collections.EMPTY_LIST;
}