p = Pattern.compile(".*" + regex); this.ar = ar;
return p.matcher(name).matches(); /* the check is done any way before invoking API if ( p.matcher(name).matches() ) { String addon = name.split(regex)[0]; return ar.isConfigurationRequired(addon); } return false; */