ConfigurationHandlers configurationHandlers
= controllerState.getUnitConfiguration()
.getConfigurationHandlers();
Set<StreamSourceFormat> streamSourceFormats
= configurationHandlers.getStreamSourceFormats();
StreamSourceFormat streamSourceFormat = null;
for (StreamSourceFormat candidate : streamSourceFormats)
{
if (sourceFormat.equals(candidate.getKey()))
{
streamSourceFormat = candidate;