public ResourceType getResourceTypeByName(String name) {
        ResourceType resourceType = null;

        for (int i = 0; i < resourceTypes.size(); i++) {
            resourceType = resourceTypes.get(i);
            if (resourceType.getName().equals(name)) {
                return resourceType;
            }
        }

        return resourceType;
    }