access properties the Java way