* @throws InterruptedException
*/
public boolean lock(String name, LockType lockType)
{
LockManager lm = ((CacheSPI<Serializable, Object>)cache).getComponentRegistry().getComponent(LockManager.class);
try
{
return lm.lock(Fqn.fromRelativeFqn(PARAMETER_ROOT, Fqn.fromString(name)), lockType, Integer.MAX_VALUE);
}
catch (InterruptedException e)
{
log.warn("An error occurs while tryning to lock the node " + name, e);
}