*/
private void addPageBean(AnnotatedType annotatedType)
{
View view = annotatedType.getAnnotation(View.class);
if(!"".equals(view.inline()[0]))
{
//TODO move exceptions to util class
throw new IllegalStateException("Definition error at: " + annotatedType.getJavaClass().getName() +
" it isn't allowed to define a class level @" + View.class.getName() +
" without a typesafe view config. Please don't use @View(inline=\"...\") for this use-case!");