class SimpleApplicationWrapper implements ApplicationWrapper {

    @Override
    public void validateConfig(Map<String, Object> props) {
        ApplicationConfig config = Configurable.createConfigurable(ApplicationConfig.class, props);

        if (config.id().equals("")) {
            throw new IllegalArgumentException("Application property \"id\" cannot be empty");
        } else if (!config.id().matches("^[a-zA-Z0-9._\\-]+$")) {
            throw new IllegalArgumentException("Application property \"id\" is invalid");
        }
        if (config.title().equals("")) {
            throw new IllegalArgumentException("Application property \"title\" cannot be empty");
        }
    }

}