int filenameIndex = directorySourceFile.getRawSchemeSpecificPart().lastIndexOf( "/" ) + 1;
directorySOA = new File( directorySourceFile ).toString().substring( 0, filenameIndex );
InputPortInfo[] inputPorts = inspector.getInputPorts( directorySourceFile );
for( InputPortInfo inputPort : inputPorts ) {
if ( inputPortName.isEmpty() || inputPortName.equals( inputPort.id() ) ) {
<BUG>types = new ArrayList<String>();
writer = new BufferedWriter( new FileWriter( inputPort.id() + ".html" ) );</BUG>
jolieDocWriter = new JolieDocWriter( writer, directorySourceFile.getRawSchemeSpecificPart().substring( filenameIndex ) );
jolieDocWriter.addPort( inputPort );
List<InterfaceDefinition> interfacesList = inputPort.getInterfaceList();

int filenameIndex = directorySourceFile.getRawSchemeSpecificPart().lastIndexOf( "/" ) + 1;
directorySOA = new File( directorySourceFile ).toString().substring( 0, filenameIndex );
InputPortInfo[] inputPorts = inspector.getInputPorts( directorySourceFile );
for( InputPortInfo inputPort : inputPorts ) {
if ( inputPortName.isEmpty() || inputPortName.equals( inputPort.id() ) ) {
types = new ArrayList<>();
writer = new BufferedWriter( new FileWriter( inputPort.id() + ".html" ) );
jolieDocWriter = new JolieDocWriter( writer, directorySourceFile.getRawSchemeSpecificPart().substring( filenameIndex ) );
jolieDocWriter.addPort( inputPort );
List<InterfaceDefinition> interfacesList = inputPort.getInterfaceList();
