http://work.netxforge.com/issues/242
http://work.netxforge.com/issues/405
http://work.netxforge.com/issues/405
Fix problem where component is not set when creating a new resource.