{
throw new ClassCastException("Error: was expecting a " + WebAppDD.class.getName() +
" but got a " + webAppDD.getClass().getName());
}
DistributableDD distributableDD = ((WebAppDD)webAppDD).getDistributable();
Boolean distributable = distributableDD.isDistributable();
// if the webapp is not distributable, return null so Castor won't emit a
// <distributable> element
if (Boolean.FALSE.equals(distributable))
{