public boolean checkPathStatus(LspInformation lspInformation) throws UnexpectedFaultException, PathNotFoundFaultException { final ConfigurationManager configManager = new ConfigurationManager(lspInformation.getSourceDevice().getModule()); if (!configManager.getStatus(lspInformation)) { DbManager.insertLog( "Cleaned lsp with pathId " + lspInformation.getPathId() + " and description: " + lspInformation.getLspDescriptor()); logger.debug( "Cleaned lsp with pathId " + lspInformation.getPathId() + " and description: " + lspInformation.getLspDescriptor()); DbManager.deletePath(lspInformation.getPathId()); try { configManager.terminatePath(lspInformation); } catch (final Exception ex) { DbManager.insertLog("Could not be deleted on router-> might be already deleted."); logger.debug("Could not be deleted on router-> might be already deleted."); logger.error(ex.getMessage(), ex); } return false; } return true; }