Added StateStream property to IPort interface
FactoryException refactored
unit test fixed