{
packaging = packagingElement.getStringValue();
}
if ( !"pom".equals( packaging ) )
{
throw new InvalidPackaging(
"Unable to add module to the current project as it is not of packaging type 'pom'"
);
}
Element modules = project.element( "modules" );