PositionFactoryImpl pf = (PositionFactoryImpl ) container.getComponentInstanceOfType( PositionFactory.class );
PrimitiveFactoryImpl primf = (PrimitiveFactoryImpl ) container.getComponentInstanceOfType( PrimitiveFactory.class );
AggregateFactoryImpl agf = (AggregateFactoryImpl) container.getComponentInstanceOfType( AggregateFactory.class );
List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
directPositionList.add(pf.createDirectPosition(new double[] {20, 10}));
directPositionList.add(pf.createDirectPosition(new double[] {40, 10}));
directPositionList.add(pf.createDirectPosition(new double[] {50, 40}));
directPositionList.add(pf.createDirectPosition(new double[] {30, 50}));
directPositionList.add(pf.createDirectPosition(new double[] {10, 30}));
directPositionList.add(pf.createDirectPosition(new double[] {20, 10}));