String service = oneSeq.substring(0, oneSeq.indexOf("."));
String method = oneSeq.substring(oneSeq.indexOf(".") + 1);
try
{
Encryptor oneEncryptor = (Encryptor) req.getService(Encryptor.ROLE, service);
if (method.equals("encrypt"))
{
current = new String(oneEncryptor.decrypt(current.getBytes("UTF-8")), "UTF-8");
}
else if (method.equals("hash"))
{
current = new String(oneEncryptor.hash(current.getBytes("UTF-8")), "UTF-8");
}
else
{
throw new ModelException("Method '" + method + "' invalid.");
}