Should clearly document that this only handles the case where there is ";type=foo"

Also, shouldn't this check that the actual mime type is application/x-java-object? There could be other mime types that use the "type" attribute.