version = service.getVersion(versionId);
if (version != null) {
for (String profileId : profiles) {
Profile profile = version.getProfile(profileId);
if (profile != null) {
<BUG>Profile overlay = profile.getOverlay();
Map<String, String> dockerConfig = overlay.getConfiguration(DockerConstants.DOCKER_PROVIDER_PID);</BUG>
if (dockerConfig != null)  {
configOverlay.putAll(dockerConfig);
}

version = service.getVersion(versionId);
if (version != null) {
for (String profileId : profiles) {
Profile profile = version.getProfile(profileId);
if (profile != null) {
Profile overlay = profile.getOverlay();
profileOverlays.add(overlay);
Map<String, String> dockerConfig = overlay.getConfiguration(DockerConstants.DOCKER_PROVIDER_PID);
if (dockerConfig != null)  {
configOverlay.putAll(dockerConfig);
}
