fixed a small bug with the java version of the FindAttribute.class