protected static PictureType createPicture(int pos) {
        try {
            PictureType pic = FACTORY.createPictureType();
            pic.setPictureTitle("some descriptive title");
            pic.setPictureUrl(new URI("http://mywebsite.org/image" + pos + ".jpg"));
            pic.setFeatured(pos == 0);
            return pic;
        } catch (URISyntaxException ex) {
            return null;
        }
    }
protected static PictureType createPicture(int pos) {
        try {
            PictureType pic = FACTORY.createPictureType();
            pic.setPictureTitle("some descriptive title");
            pic.setPictureUrl(new URI("http:
            pic.setFeatured(pos == 0);
            return pic;
        } catch (URISyntaxException ex) {
            return null;
        }
    }
protected static PictureType createPicture ( int pos ) { try { PictureType pic = FACTORY . createPictureType ( ) ; pic . setPictureTitle ( "some descriptive title" ) ; pic . setPictureUrl ( new URI ( "http://mywebsite.org/image" + pos + ".jpg" ) ) ; pic . setFeatured ( pos == 0 ) ; return pic ; } catch ( URISyntaxException ex ) { return null ; } }
Create a {@link PictureType} with some example data.

@param pos image position
@return created example object
Create a { @link PictureType } with some example data .