EOQualifier aQualifier = new EOAndQualifier(new NSArray(new Object[] { aPathQualifier, aNotQualifier }));
EOFetchSpecification aFetchSpecification = new EOFetchSpecification("FSDirectory", aQualifier, null);
EOEditingContext anEditingContext = new EOEditingContext();
NSArray someObjects = anEditingContext.objectsWithFetchSpecification(aFetchSpecification);
System.out.println("Fetch result for '" + aQualifier + "': " + someObjects.valueForKey("name"));
if (someObjects != null) {
EOEnterpriseObject anObject = (EOEnterpriseObject) someObjects.lastObject();
NSArray someFiles = (NSArray) anObject.valueForKey("files");
NSArray someDirectories = (NSArray) anObject.valueForKey("directories");