password=password.trim();
}
else {
ApplicationContext ac = pc.getApplicationContext();
if(ac instanceof ModernApplicationContext) {
ModernApplicationContext mac=(ModernApplicationContext) ac;
password = Caster.toString(mac.getCustom(KeyImpl.init("webAdminPassword")),null);
}
}
if(StringUtil.isEmpty(password, true))
throw new SecurityException("To manipulate a REST mapping you need to define the password for the current Web Administartor, " +
"you can do this as argument with this function or inside the application.cfc with the variable [this.webAdminPassword].");