@@ -0,0 +1,792 @@
+package us.kbase.common.utils;%0A%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Date;%0Aimport java.util.Map;%0A%0Aimport org.apache.commons.lang3.StringUtils;%0A%0Apublic class ServiceUtils %7B%0A%0A%09private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat(%22yyyy-MM-dd'T'HH:mm:ss%22);%0A%0A%09public static void checkAddlArgs(final Map%3CString, Object%3E addlargs,%0A%09%09%09@SuppressWarnings(%22rawtypes%22) final Class clazz) %7B%0A%09%09if (addlargs.isEmpty()) %7B%0A%09%09%09return;%0A%09%09%7D%0A%09%09throw new IllegalArgumentException(String.format(%0A%09%09%09%09%22Unexpected arguments in %25s: %25s%22,%0A%09%09%09%09clazz.getName().substring(clazz.getName().lastIndexOf(%22.%22) + 1),%0A%09%09%09%09StringUtils.join(addlargs.keySet(), %22 %22)));%0A%09%7D%0A%0A%09public static String formatDate(final Date d) %7B%0A%09%09if (d == null) %7B%0A%09%09%09return null;%0A%09%09%7D%0A%09%09return DATE_FORMAT.format(d);%0A%09%7D%0A%7D%0A

Add some basic service helper methods