public static LockServiceProtos.LockedResourceType
    convertToProtoResourceType(LockedResourceType resourceType) {
    return LockServiceProtos.LockedResourceType.valueOf(resourceType.name());
  }
Helper to convert the protobuf procedure.
<p/>
Used by ProcedureStore implementations.
<p/>
TODO: OPTIMIZATION: some of the field never change during the execution (e.g. className,
procId, parentId, ...). We can split in 'data' and 'state', and the store may take advantage of
it by storing the data only on insert().
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureUtil.java