class OnPackagingCondition extends ProjectGenerationCondition {

	@Override
	protected boolean matches(ProjectDescription description, ConditionContext context,
			AnnotatedTypeMetadata metadata) {<FILL_FUNCTION_BODY>}

}

		if (description.getPackaging() == null) {
			return false;
		}
		String packagingId = (String) metadata.getAllAnnotationAttributes(ConditionalOnPackaging.class.getName())
			.getFirst("value");
		Packaging packaging = Packaging.forId(packagingId);
		return description.getPackaging().id().equals(packaging.id());
	
<methods>public non-sealed void <init>() ,public boolean matches(org.springframework.context.annotation.ConditionContext, org.springframework.core.type.AnnotatedTypeMetadata) <variables>