@Bean
	public ContainerAttributes containerAttributes() {

		final ContainerAttributes containerAttributes = new ContainerAttributes();
		setConfiguredContainerAttributes(containerAttributes);

		final String containerIp = environment.getProperty(CONTAINER_ATTRIBUTES_PREFIX
				+ ContainerAttributes.IP_ADDRESS_KEY);
		final String containerHostname = environment.getProperty(CONTAINER_ATTRIBUTES_PREFIX
				+ ContainerAttributes.HOST_KEY);

		containerAttributes.setIp(StringUtils.hasText(containerIp) ? containerIp : RuntimeUtils.getIpAddress());
		containerAttributes.setHost(StringUtils.hasText(containerHostname) ? containerHostname : RuntimeUtils.getHost());

		containerAttributes.setPid(RuntimeUtils.getPid());
		return containerAttributes;
	}
The boot application class for a Container server.

@author Mark Fisher
@author David Turanski
@author Marius Bogoevici
@author Gunnar Hillert
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/server/container/ContainerServerApplication.java