Added method for getting properties from java