Added checking for optional input ports (based on Java component metadata)