Processor(Resource resource, String profile) { if (profile == null) { setMatchDefault(true); setDocumentMatchers(new SpringProfileDocumentMatcher()); } else { setMatchDefault(false); setDocumentMatchers(new SpringProfileDocumentMatcher(profile)); } setResources(new Resource[] { resource }); }