repackaging web to webapp
adding check for attributes when injecting documents