layer.open();
System.out.println( "Searched for: " +filter );
int results=layer.getNumResults();
System.out.println( "Results number (should be always 1): " +results );
for(int i=0;i<results;i++) {
shapeObj shape=layer.getShape(layer.getResult(i));
System.out.println( "shape["+i+"]=" +shape );
}
layer.close();