code: private static List<Resource> getResources(Datatype datatype) {
      	List<Resource> toReturn = new ArrayList<Resource>();
      	
      	Resources resources = datatype.getResources();
  		if (resources != null) {
  			for (Resource resource : resources.getResource()) {
  				if(useObsoleteResources // ok to collect (- do not care about obsolete)
  					|| resource.isObsolete() == null // undefined - here means non-obsolete (ok)
  						|| !resource.isObsolete().booleanValue()) {
  					toReturn.add(resource);
  				}
  			}
  		}
  		
  		return toReturn;
      }
docs: Gets the list of Miriam {@link Resource} from
  the datatype, also taking the 'obsolete' flag/state
  into account.
  
  @param datatype a MIRIAM Datatype
  @return the list of MIRIAM Resources in that datatype