@Override
	public String[] profilesToActivate() {
		if (this.regexPattern != null) {
			return new String[] { REGEX_PATTERN_FILTER };
		}
		else if (this.pattern != null) {
			return new String[] { SIMPLE_PATTERN_FILTER };
		}
		return new String[] { ACCEPT_ALL_FILES };
	}
Module options for SFTP source module.

@author Ilayaperumal Gopinathan
@author Eric Bottard
@author Gary Russell
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/modules/metadata/SftpSourceOptionsMetadata.java