@@ -0,0 +1,1318 @@
+package com.github.aureliano.achmed.server.helper;%0A%0Aimport java.util.Properties;%0A%0Aimport com.github.aureliano.achmed.common.exception.AchmedException;%0Aimport com.github.aureliano.achmed.common.helper.FileHelper;%0Aimport com.github.aureliano.achmed.common.helper.PropertyHelper;%0Aimport com.github.aureliano.achmed.common.helper.StringHelper;%0A%0Apublic final class ApplicationHelper %7B%0A%0A%09private ApplicationHelper() %7B%7D%0A%09%0A%09public static void execute(String path) %7B%0A%09%09throw new AchmedException(%22Not implemented yet.%22);%0A%09%7D%0A%09%0A%09public static String help() %7B%0A%09%09String help = FileHelper.readResource(%22meta/help%22);%0A%09%09return help;%0A%09%7D%0A%09%0A%09public static String version() %7B%0A%09%09Properties properties = PropertyHelper.loadProperties(%22meta/version.properties%22);%0A%09%09%0A%09%09return new StringBuilder()%0A%09%09%09.append(properties.get(%22version%22))%0A%09%09%09.append(%22:%22)%0A%09%09%09.append(properties.get(%22release%22))%0A%09%09%09.append(%22 (%22)%0A%09%09%09.append(properties.get(%22date%22))%0A%09%09%09.append(%22)%5Cn%22)%0A%09%09%09.toString();%0A%09%7D%0A%09%0A%09public static String error(String%5B%5D args) %7B%0A%09%09if (args.length == 0) %7B%0A%09%09%09return %22Port number parameter is mandatory.%22;%0A%09%09%7D else if ((args.length == 2) && (%22-p%22.equals(args%5B0%5D)) && (!args%5B1%5D.matches(%22%5C%5Cd+%22))) %7B%0A%09%09%09return %22Port number must be a valid integer.%22;%0A%09%09%7D else %7B%0A%09%09%09return %22Don't know how to handle such command: %22 + StringHelper.join(args, %22 %22);%0A%09%09%7D%0A%09%7D%0A%7D

Create application helper.