/**
  * Validate new name. Used for validation new name in rename refactoring wizard.
  *
  * @param newName the new element name
  * @return the status of validation
  * @throws RefactoringException when there are no corresponding refactoring session
  */
 @POST
 @Path("rename/validate/name")
 @Consumes("application/json")
 @Produces("application/json")
 public RefactoringStatus validateNewName(ValidateNewName newName) throws RefactoringException {
   return manager.renameValidateNewName(newName);
 }