}
public static Resource createResource(String resourceName, List<ResourceValue> resourceValue)
{
ParameterValidation.throwIllegalArgExceptionIfNull(resourceName, "ResourceName");
Resource resource = new Resource();
resource.setResourceName(resourceName);
if (resourceValue != null && !resourceValue.isEmpty())
{
resource.getValues().addAll(resourceValue);
}
return resource;
}