UserDetailsImpl readerDetails = new UserDetailsImpl("reader", "pwreader",
new GrantedAuthority[] { new GrantedAuthorityImpl("READER") });
readerDetails.setPersNr(4711);
GeometryFactory fac = new GeometryFactory();
LinearRing r = fac.createLinearRing(new Coordinate[] { new Coordinate(11, 11),
new Coordinate(14, 11), new Coordinate(14, 14), new Coordinate(11, 14),
new Coordinate(11, 11), });
Polygon poly = fac.createPolygon(r, new LinearRing[] {});
poly.setUserData("EPSG:4326");
readerDetails.setGeometryRestriction(poly);