private final boolean matches(MappedSchema s, String schemaName) { return (s.getInput() != null && schemaName.equals(s.getInput())) || (s.getInputExpression() != null && s.getInputExpression().matcher(schemaName).matches()); }
if (s.getInput() != null && !s.getOutput().equals(schemaName)) result = new RenamedSchema(result, s.getOutput()); else if (s.getInputExpression() != null) result = new RenamedSchema(result, s.getInputExpression().matcher(schemaName).replaceAll(s.getOutput()));