Refactored PortRepository into PortCompoment for usage with cake-pattern.