code: public static FileLock getFileLock(java.io.RandomAccessFile file, String fileName) throws java.io.IOException
      {
          return (FileLock) Utils.getImpl("com.ibm.ws.objectManager.utils.FileLockImpl",
                                          new Class[] { java.io.RandomAccessFile.class, String.class },
                                          new Object[] { file, fileName });
      }
docs: Create a platform specific FileLock instance.
  
  @param file to be locked. The file must be already open.
  @param fileName of the file.
  @return FileLock for the file.
  @throws java.io.IOException