public static void throwOperationFailedIfValueIsMissing(Object valueToCheck, String valueName) throws OperationFailed
{
if (valueToCheck == null)
{
throw new OperationFailed("Missing required " + valueName, WSRPTypeFactory.createOperationFailedFault());
}
}