{
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");
}