private static JLabel createTitle(DebugSession session) {
String text;
String provider = session.getTestProviderId();
if (provider.equals(TestScriptProvider.ID)) {
IntegrationEntityId id = session.getDebugeeId();
if (id instanceof ScriptId) {
text = "Test Script";
} else if (id instanceof TransformationId) {
text = "Test Mapping";
} else {
throw new RuntimeException("Unexpected ID type: " + id.getEntityType());
}
} else if (provider.equals(TestOperationProvider.ID)) {
text = "Test Operation";
} else if (provider.equals(TestTransformationProvider.ID)) {
text = "Test Transformation";