/** * Gets the operation. * * @param type the type * @return the operation */ private Operation getOperation(ChangeType type) { Operation operation = null; if (type != null) { try { operation = Operation.valueOf(type.name()); } catch (IllegalArgumentException ex) { LOG.info("Unsupported change type. Check Operation and ChangeType enums.", ex); } } return operation; }