statement.setString(1, resourceTypeName);
ResultSet result = statement.executeQuery();
if (result.next()) {
resourceType = getResourceTypeFromResult(result);
} else {
throw new ResourceTypeNotFoundException();
}
} catch (SQLException e) {
throw new DAOException();
}
return resourceType;