Java - Trouble Accessing ValueMap
<p>I've got a pretty simple script that simply accesses a resources properties via a ValueMap. Except for some reason I keep getting an <strong>unexpected token error</strong> were the if statement starts. This has to be something I'm just overlooking. </p>

<pre><code>public class headerComponent{
  ValueMap property = resource.adaptTo(ValueMap.class);
  if(property != null) {
    pageHeader = property.get("pageHeader", "");
  }
}
</code></pre>

<p>Any ideas? Thanks for the help.</p>
