This is not very important, why do you preffer to create a separate object to make the locks instead instead of using Long in the previous line? to avoid autowrapping?