code: private RegistryEntry findParent(Class<?> resourceClass, Set<RegistryEntry> registryEntries) {
  		RegistryEntry foundRegistryEntry = null;
  		Class<?> currentClass = resourceClass.getSuperclass();
  		classHierarchy: // goto statement?! Replace this with a recursion
  		while (currentClass != null && currentClass != Object.class) {
  			for (RegistryEntry availableRegistryEntry : registryEntries) {
  				if (availableRegistryEntry.getResourceInformation().getResourceClass().equals(currentClass)) {
  					foundRegistryEntry = availableRegistryEntry;
  					break classHierarchy;
  				}
  			}
  			currentClass = currentClass.getSuperclass();
  		}
  		return foundRegistryEntry;
  	}
docs: Finds the closest resource in the class inheritance hierarchy. If no
  resource parent is found, <i>null</i> is returned.
  
  @param resourceClass
  information about the searched resource
  @param registryEntries
  a set of available resources
  @return resource's parent resource