if (someObjects != null) {
EOEnterpriseObject anObject = (EOEnterpriseObject) someObjects.lastObject();
NSArray someFiles = (NSArray) anObject.valueForKey("files");
NSArray someDirectories = (NSArray) anObject.valueForKey("directories");
System.out.println("anObject name: " + anObject.valueForKey("name"));
System.out.println("someFiles.count: " + someFiles.count());
System.out.println("someFiles.name: " + someFiles.valueForKey("name"));
System.out.println("someFiles.content.length: " + someFiles.valueForKeyPath("content.length"));
System.out.println("someDirectories.count: " + someDirectories.count());
System.out.println("someDirectories.name: " + someDirectories.valueForKey("name"));