'Parse an ``Application`` instance for its environment variables and
return a ``dict`` representing the Flocker-format YAML configuration
for those variables.'

def convert_environment(self):

    if self._application.environment:
        return dict(self._application.environment)
    return None
